package com.anyi.gulimall.product.service;

import com.anyi.gulimall.product.entity.BrandEntity;
import com.anyi.gulimall.product.entity.CategoryEntity;
import com.anyi.gulimall.product.vo.BrandVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.anyi.gulimall.common.utils.PageUtils;
import com.anyi.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author anyi
 * @email 1961741003@qq.com
 * @date 2022-07-27 10:58:40
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    // 根据品牌id获取所有关联的分类
    List<CategoryBrandRelationEntity> getBrandCategoryList(Long brandId);

    // 保存关联信息
    void saveCategoryBrandRelationEntity(CategoryBrandRelationEntity categoryBrandRelation);
    // 根据catid 查询分类下关联的品牌
    List<BrandVo> findBrands(Long catId);
}

